#include "Multiplexers.h"

Multiplexers::Multiplexers(CD74HC4051& mux0,CD74HC4051& mux1,CD74HC4051& mux2):
    _mux0(mux0),
    _mux1(mux1),
    _mux2(mux2)
{

}
Multiplexers::~Multiplexers()
{

}

void Multiplexers::open()
{
    _mux0.enable(true);
    _mux1.enable(true);
    _mux1.enable(true);
}
void Multiplexers::close()
{
    _mux0.enable(false);
    _mux1.enable(false);
    _mux1.enable(false);
}
CD74HC4051& Multiplexers::mux0()
{
    return _mux0;
}
CD74HC4051& Multiplexers::mux1()
{
    return _mux1;
}
CD74HC4051& Multiplexers::mux2()
{
    return _mux1;
}